package fangzhiyi_day0321.Arraylist;

/**
 * @author fangzhiyi
 * @version 1.0
 * @date 2025/3/21 11:07
 * @description
 */
public class Emp {
    private int id;
    private String name;
    private String job;
    private double salary;
    private int age;
    private String dept;

    public Emp(){}

    public Emp(int id, String name, String job, double salary, int age, String dept) {
        this.id = id;
        this.name = name;
        this.job = job;
        this.salary = salary;
        this.age = age;
        this.dept = dept;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getJob() {
        return job;
    }

    public void setJob(String job) {
        this.job = job;
    }

    public double getSalary() {
        return salary;
    }

    public void setSalary(double salary) {
        this.salary = salary;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getDept() {
        return dept;
    }

    public void setDept(String dept) {
        this.dept = dept;
    }

    @Override
    public String toString() {
        return "Emp{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", job='" + job + '\'' +
                ", salary=" + salary +
                ", age=" + age +
                ", dept='" + dept + '\'' +
                '}';
    }
}
